#!/bin/bash
cd bedrock-server
chmod +x ./bedrock_server
t=$(ls behavior_packs)
if (( a$t == a ))
then
    echo "未检测到行为包，解压"
    tar -xzvf behavior_packs.tar.gz
fi
t=$(ls resource_packs)
if (( a$t == a ))
then
    echo "未检测到资源包，解压"
    tar -xzvf resource_packs.tar.gz
fi
./bedrock_server